package com.iflytek.cosmo.ocr.common.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

@Configuration
@ConfigurationProperties(prefix = "works")
public class WorksProperties {

    @Value("${works.recongnized}")
    private int recongnizedWorker;

    @Value("${works.format}")
    private int formatWorker;

    @Value("${works.compress}")
    private int compressWorker;

    @Value("${works.queueSize}")
    private int queueSizeWorker;


    public int getQueueSizeWorker() {
        return queueSizeWorker;
    }

    public void setQueueSizeWorker(int queueSizeWorker) {
        this.queueSizeWorker = queueSizeWorker;
    }

    public int getRecongnizedWorker() {
        return recongnizedWorker;
    }

    public void setRecongnizedWorker(int recongnizedWorker) {
        this.recongnizedWorker = recongnizedWorker;
    }

    public int getFormatWorker() {
        return formatWorker;
    }

    public void setFormatWorker(int formatWorker) {
        this.formatWorker = formatWorker;
    }

    public int getCompressWorker() {
        return compressWorker;
    }

    public void setCompressWorker(int compressWorker) {
        this.compressWorker = compressWorker;
    }
}
